import uibDropdownModalView from "./dropdown-modal.mjs";
import uibDropdownView from "./dropdown.mjs";
import uibModalView from "./modal.mjs";
import uibPopoverView from "./popover.mjs";
import { defineIndexRouteView } from "@/routers/common-index.mjs";
import { combRouter } from "@/routers/tools.mjs";

/**
 * @type {DefineRoute[]}
 */
export const subRoutingUIB = [
  combRouter(uibModalView, {
    name: "dg.uib.modal",
    url: "/modal",
  }),
  combRouter(uibDropdownView, {
    name: "dg.uib.dropdown",
    url: "/dropdown",
  }),
  combRouter(uibDropdownModalView, {
    name: "dg.uib.dropdown-modal",
    url: "/dropdown-modal",
  }),
  combRouter(uibPopoverView, {
    name: "dg.uib.popover",
    url: "/popover",
  }),
];

const uibView = defineIndexRouteView(subRoutingUIB);

export default uibView;
